package space.sakana.edusysback.entity;

import space.sakana.edusysback.util.TimeUtil;

public class Subject {

    private int id;
    private String name;
    private int create;

    public Subject(int id, String name, int create) {
        this.id = id;
        this.name = name;
        this.create = create;
    }

    public Subject(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public Subject(String name, int create) {
        this.name = name;
        this.create = create;
    }

    public Subject(String name) {
        this.name = name;
        this.create = TimeUtil.getTimeStamp();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCreate() {
        return create;
    }

    public void setCreate(int create) {
        this.create = create;
    }
}
